#ifndef _MOZ_REPL
#define _MOZ_REPL

#include <string>

class moz_repl
{
public:
	void init_from(const char* filename);
	void init_from(std::string const& filename);
	std::string const connection_str();
	moz_repl();

	//void set_port_number(unsigned int );
	void set_port_param(std::string const& p);
	void set_hostname(std::string const&);
	void set_application(std::string const& s);

	static const char DELIMITER;
	static const std::string PORT;
	static const std::string HOST;
	static const std::string APPLICATION;
	static const char COMMENT;

private:
	//unsigned int port_number;
	std::string _port_param;
	std::string hostname;
	std::string _application;

	void parse(const char* filename);
};


#endif
